package com.erp.wallet.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 用户钱包拓展业务对象 erp_seller_store_wallet_expend
 *
 * @author erp
 * @date 2023-08-02
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreWalletExpendBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 测评金额
     */
    @NotNull(message = "测评金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal evaluate;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
